package com.ship.dispatch.bpm.vo;

import com.fasterxml.jackson.databind.node.ObjectNode;
import com.ship.common.core.mapping.Label;
import com.ship.common.core.mapping.TableColumn;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 *@title ManageEntityVo
 *@description
 *@author yl
 *@create 2023/12/14 0014
 */
@Data
public class ManageEntityVo implements Serializable {
    /**
     * 方案id
     */
    @NotNull(message = "方案ID不能为空")
    @ApiModelProperty("调度方案ID")
    private Long schemeDetailId;
    /**
     * 任务id
     */
    @ApiModelProperty("审批任务id")
    private String taskId;
    /**
     * 候选人
     */
    private String addAssigeners;
    /**
     * 任务类型
     */
    @NotNull(message = "业务类型不能为空")
    @ApiModelProperty("业务类型")
    private String key;
    /**
     *  0 保存 1 完成 -1 退回任务
     */
    @NotNull(message = "操作类型不能为空")
    @ApiModelProperty("业务操作类型")
    private Integer operationType;

    @ApiModelProperty("表单id")
    private String formKey;
    @NotNull(message = "流程实例id不能为空")
    @ApiModelProperty("流程实例id")
    private String processInstanceId;

    /**
     * 业务数据
     */
    @NotNull(message = "业务数据不能为空")
    @ApiModelProperty("业务数据")
    private ObjectNode data;
}
